package com.harmontronics.hanma.paas.paas.domain.iam.repository.mapper;

import com.harmontronics.hanma.paas.paas.domain.iam.entity.GroupMemberUser;
import com.harmontronics.hanma.paas.paas.domain.iam.entity.MemberOrg;
import com.harmontronics.hanma.paas.paas.domain.iam.repository.po.HmUserGroupMemberPO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 用户组成员个人（部门）
 * 
 * @author paas-generator
 * @email paas-generator@harmontronics.com
 * @date 2021-04-07 10:35:20
 */
@Mapper
public interface HmUserGroupMemberMapper extends BaseMapper<HmUserGroupMemberPO> {

    List<GroupMemberUser> selectGroupMemberWithGroupId(Long groupId);

    List<HmUserGroupMemberPO> selectGroupMemberWithUserId(@Param("userGroupId") Long userGroupId,
            @Param("unionId") Long unionId);

    List<MemberOrg> selectOrgInfoWithMember(Long userGroupId);
	
}
